
;;  __        __             __   ___
;; |__)  /\  /  ` |__/  /\  / _` |__
;; |    /~~\ \__, |  \ /~~\ \__> |___
;;                      __   ___        ___      ___
;; |\/|  /\  |\ |  /\  / _` |__   |\/| |__  |\ |  |
;; |  | /~~\ | \| /~~\ \__> |___  |  | |___ | \|  |
; (require 'package)
; (package-initialize)
; (add-to-list'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t)
;(set-language-environment 'Chinese-GB)
(setq current-language-environment "UTF-8")  
(setq default-input-method "chinese-py")  
(setq locale-coding-system 'utf-8)  
(set-terminal-coding-system 'utf-8)  
(set-keyboard-coding-system 'utf-8)  
(set-selection-coding-system 'utf-8)  
(prefer-coding-system 'utf-8)  
(require 'package)
(package-initialize)
(add-to-list'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t)
;; 关闭启动帮助画面
(setq inhibit-splash-screen 1)
(global-auto-revert-mode 1)
(add-to-list 'load-path "~/.emacs.d/lisp/")
(add-to-list 'load-path "~/.emacs.d/elpa/")
(add-to-list 'load-path "~/.emacs.d/lgs/")
(add-to-list 'load-path "~/.emacs.d/custom")
;;    加载
(when (not package-archive-contents)
    (package-refresh-contents))

(unless (package-installed-p 'use-package)
  (package-install 'use-package))
(require 'use-package)
(setq use-package-always-ensure t)

(require 'setup-general)
(require 'setup-cedet)
(require 'setup-editing)
; (require 'mysettings)
;  (require 'subdirs)
;  (require 'myTimer)
;  (require 'keybd)
;  (require 'tools)
;  (require 'lgspython)
; (require 'Abbrevs)
(if (version< emacs-version "24.4")
    (require 'setup-ivy-counsel)
  (require 'setup-helm)
  (require 'setup-helm-gtags))




(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(column-number-mode t)
 '(display-time-mode t)
 '(package-selected-packages
   (quote
    (w3 gmail2bbdb register-list xterm-color web-mode todotxt-mode swiper-helm sublime-themes ssh spinner smartparens smart-mode-line sexy-monochrome-theme seti-theme session select-themes redis react-snippets python-mode password-store password-generator org-gnome org-ac occur-x nodejs-repl node-resolver monokai-theme monochrome-theme mocha mark-tools macrostep js3-mode js2-refactor jq-mode jazz-theme imenu+ iedit hungry-delete html5-schema html-script-src html-check-frag helm-ag git-commit git flycheck-color-mode-line expand-region exec-path-from-shell counsel company-auctex company-anaconda color-theme-modern coffee-fof chinese-pyim chicken-scheme chess auto-yasnippet auto-compile angular-mode ace-pinyin ac-js2)))
 '(send-mail-function (quote smtpmail-send-it))
 '(session-use-package t nil (session))
 '(show-paren-mode t)
 '(tool-bar-mode nil))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(default ((t (:background nil)))))
